#pragma once
#include "Singleton.h"
#include <string>
#include <vector>
#include <map>
#include <memory>
#include "worker/ImgWriter.h"

class ImgWriterMgr : public Singleton<ImgWriterMgr>
{
public:
	int Init(const std::string& conf_file);
	void Run();
	void Push(const ImgWriteInfo& info);
protected:
	friend class Singleton<ImgWriterMgr>;
	ImgWriterMgr() {}
	~ImgWriterMgr() {}
	void _Run();
private:
	std::vector<std::shared_ptr<ImgWriter>> m_writers;
};
